<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <meta name="format-detection" content="telephone=no">
    #parse("/h5/common/webWords.html")
    <link rel=stylesheet type=text/css href="http://${staticHost}/css/component.css">
    <script type="text/javascript" src="http://${staticHost}/js/jquery2.js"></script>
    <script type=text/javascript src="http://${staticHost}/js/modernizr.custom.js"></script>
    <script type=text/javascript src="http://${staticHost}/js/jquery.dlmenu.js"></script>
    <link rel="stylesheet" type="text/css" href="http://${staticHost}/css/style1.css" />
    <!--头部 begin -->
    #parse("/h5/common/headerTop.html")
    <!--头部 end -->
    <!--登出系统 begin-->
    #parse("/h5/common/loginHeader.html")
    <!--登出系统 end-->
    <script src="http://${staticHost}/js/TouchSlide.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#createResume").click(function(){
            	var resumeCount = $("#resumeCount").val();
            	if(resumeCount < 1){
            		showMessage("您的简历份数已经达到上限");
            		return;
            	}
            	$("#createResume").attr("disabled","disabled");
                window.location.href="/personnelWork/auth/createResume?resumeCount="+resumeCount;
            });
            
            $(".defaultResume").click(function(){
            	var _this = $(this);
            	var userJobId = _this.attr("userJobId");
            	var userJobBasisId = $("#userJobBasisId").val();
				$.ajax({
					type:'post',
		            url:'${requestHost}/personnelWork/auth/updateDefaultResume',
		            contentType:'application/x-www-form-urlencoded; charset=utf-8',
		            data:{
		            	userJobId:userJobId,
		            	userJobBasisId:userJobBasisId
		            },
		            success: function (result) {
		                if(result.status == '00000000'){
		                    showMessage("更新成功");
		                    window.location.href="/personnelWork/auth/myResumeList"
		                }
		            }
				});
            });
            
            $(".myResume").click(function(){
            	var _this = $(this);
            	var jobId = _this.attr('jobId');
            	window.location.href = '/personnelWork/auth/myResume?jobId='+jobId;
            });

        });
    </script>
    <style type="text/css">
        .menuSection {
            width: 100%;
            padding: 1rem 1.5rem;
            background: #f8f7fc;
        }

        .listSection ul {
            padding: 0;
        }

        .listSection>ul>li {
            margin: 1.5rem 0 2rem 0;
            list-style: none;
            padding: 0rem 1.5rem 1.5rem 1.5rem;
            border-bottom: .8rem solid #f8f7fc;
        }

        .listSection>ul>li:last-child {
            margin: 1.5rem 0 0 0;
            border: 0;
        }

        .jobTitle span {
            display: inline-block;
        }

        .jobName {
            margin-left: 0;
            font-size: 1.6rem;
        }

        .jobMoney {
            float: right;
            color:#188aff;
        }

        .jobOption {
            margin: 1rem 0;
        }

        .jobOption ul li {
            display: inline-block;
            padding: 0 0.5rem 0 0;
            border-right: .1rem solid #333333;
        }

        .jobOption ul li:last-child {
            border: 0;
        }

        .wdjl-bottom-btn {
            text-align: center;
        }

        .wdjl-btn-width {
            width: 80%;
        }
        .wdjl-defaultReumn{
            float: right;
            width:6rem;
            text-align: center;
            color: #fff;
            height: 2rem;
            border-radius: .2rem;
            padding-top: .5rem;
            background: #188aff;
        }

        a:link {
            color: #666;
            text-decoration: none;
        }
        a:visited {
            color: #666;
            text-decoration: none;
        }
        a:hover {
            color: #666;
            text-decoration: none;
        }
    </style>
</head>
<body style="background: #f8f7fc;">
#parse("/h5/common/back.html")
<div class="global-container">
    <header class="global-header" style="font-size: 18px;height: 50px;line-height: 50px;color: #333333;background-color: #fefeff;border-bottom: 1px solid #f8f7fc;">
        我的简历
    </header>
    <section class="menuSection">
        您还可以再建立<span style="color:#000;font-size:18px;padding: 2px;" >$count</span>份备用简历
    </section>
    <input type="hidden" id="userJobBasisId" value="${userJobBasisId}" />
    <input type="hidden" id="resumeCount" value="${count}" />
    <section class="listSection">
        <ul>
            #foreach($userJob in $userJobList)
            <li #if($velocityCount == $userJobList.size()) style="border-bottom: 1px #f8f7fc solid;" #end>
                <div>
                    <a href="javascript:void(0)" class="myResume" jobId="$userJob.id"><span class="jobName">$userJob.resumeName</span></a>
                    #if($userJob.defaultFlag == '1')
                    <span class="jobMoney">
                        <input type="checkbox" name="resume" id="checkedbox1" value="all" checked="checked" disabled="disabled" /><label for="checkedbox1"></label>默认简历
                    </span>
                    #else
                    <a href="javascript:void(0)" userJobId="$userJob.id" class="defaultResume"><span class="wdjl-defaultReumn">
                          置为默认
                    </span></a>
                    #end
                </div>
                <div class="jobOption">
                    <ul>
                        <li>$!date.format('yyyy-MM-dd HH:mm:ss',$userJob.updateDate)</li>
                    </ul>
                </div>
            </li>
            #end
        </ul>
    </section>
    <section class="global-section wdjl-bottom-btn" style="padding: 1rem 0rem 1rem 0rem;">
        <input class="global-button-big wdjl-btn-width" type="button" id="createResume"  name="" value="创建新简历">
    </section>
</div>
<!--底部 begin -->
#parse("/h5/common/footer.html")
<!-- 底部 end -->
</body>
</html>
